package com.zx.oa.listener;

/**
 * 统计在线人数
 * @author Administrator
 *
 */
public class OnlineCounter {
	
	private static long online=0;
	

	public static long getOnline() {
		return online;
	}

	public static void setOnline(long online) {
		OnlineCounter.online = online;
	}

	public static void raise() {
		online++;
	}

	public static void reduce() {
		if (online<1) {
			online=1;
		}else {
			online--;
		}
	}

}
